projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b59f4e
)
gtk/gtkemojichooser.c: Don't use g_autoptr()
author
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 15 Aug 2017 02:43:01 +0000
(10:43 +0800)
committer
Chun-wei Fan
<fanchunwei@src.gnome.org>
Tue, 15 Aug 2017 15:36:53 +0000
(23:36 +0800)
We can't use g_autoptr() on non-GCC-style compilers.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
gtk/gtkemojichooser.c
patch
|
blob
|
history
diff --git
a/gtk/gtkemojichooser.c
b/gtk/gtkemojichooser.c
index 3d47c8e68d9baa0e7fbcc86e244cf1992e4220a6..f160496d49df0dbac033592b484c979fec89a94f 100644
(file)
--- a/
gtk/gtkemojichooser.c
+++ b/
gtk/gtkemojichooser.c
@@
-327,7
+327,7
@@
add_emoji (GtkWidget *box,
static void
populate_emoji_chooser (GtkEmojiChooser *chooser)
{
-
g_autoptr(GBytes)
bytes = NULL;
+
GBytes *
bytes = NULL;
GVariantIter iter;
GVariant *item;
GtkWidget *box;
@@
-362,6
+362,8
@@
populate_emoji_chooser (GtkEmojiChooser *chooser)
add_emoji (box, FALSE, item, 0);
}
+
+ g_bytes_unref (bytes);
}
static void